package models_live

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type LiveMainCategory struct {
	Id         int    `json:"id" gorm:"primaryKey;autoIncrement"`
	Title      string `json:"title"`                                    //varchar(255) DEFAULT NULL,
	Icon       string `json:"icon"`                                     // varchar(255) DEFAULT NULL,
	Sort       int    `json:"sort"`                                     //int(10) DEFAULT '1' COMMENT '排序',
	Status     int    `json:"status"`                                   //int(1) DEFAULT '1' COMMENT '0-隐藏 1-显示',
	SportTypes string `json:"sportType" gorm:"column:sport_type_codes"` //string COMMENT '賽事類型編碼，參照sport_type:code',
}

func (LiveMainCategory) TableName() string {
	return fmt.Sprintf("%slive_main_category", models.Prefix)
}
